﻿using Microsoft.EntityFrameworkCore;
using MyRabbit.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyRabbit.EntityFrameWorkCore
{
    public class MyRabbitDbContext : DbContext
    {
        public MyRabbitDbContext(DbContextOptions<MyRabbitDbContext> options) : base(options)
        {
        }
        /// <summary>
        /// 用户
        /// </summary>
        public DbSet<User> Users { get; set; }
        /// <summary>
        /// 产品表
        /// </summary>
        public DbSet<Product> Products { get; set; }
        /// <summary>
        /// 养殖表
        /// </summary>
        public DbSet<Breed> Breeds { get; set; }
        /// <summary>
        /// 企业表
        /// </summary>
        public DbSet<Exterprise> Exterprises { get; set; }
        /// <summary>
        /// 免疫表
        /// </summary>
        public DbSet<Immune> Immunes { get; set; }
        /// <summary>
        /// 图片表
        /// </summary>
        public DbSet<ImgInfo> ImgInfo { get; set; }
        /// <summary>
        /// 多图片表
        /// </summary>
        public DbSet<ImgInfos> ImgInfos { get; set; }
        /// <summary>
        /// 养殖免疫表
        /// </summary>
        public DbSet<BreedImmune> BreedImmunes { get; set; }
        /// <summary>
        /// 农场表
        /// </summary>
        public DbSet<Fram> Frams { get; set; }
        /// <summary>
        /// 屠宰表
        /// </summary>
        public DbSet<Slaughte> Slaughte { get; set; }
        /// <summary>
        /// 屠宰企业表
        /// </summary>
        public DbSet<SlaughteEnterprise> SlaughteEnterprises { get; set; }
        
        


    }
}
